import request from '@/utils/request'

// 查询道桥信息列表
export function listRoadBridge(query) {
  return request({
    url: '/rb/roadBridge/list',
    method: 'get',
    params: query
  })
}

// 查询道桥信息详细
export function getRoadBridge(id) {
  return request({
    url: '/rb/roadBridge/' + id,
    method: 'get'
  })
}

// 新增道桥信息
export function addRoadBridge(data) {
  return request({
    url: '/rb/roadBridge',
    method: 'post',
    data: data
  })
}

// 修改道桥信息
export function updateRoadBridge(data) {
  return request({
    url: '/rb/roadBridge',
    method: 'put',
    data: data
  })
}

// 删除道桥信息
export function delRoadBridge(id) {
  return request({
    url: '/rb/roadBridge/' + id,
    method: 'delete'
  })
}

// 获取道桥统计
export function getRoadBridgeGroup() {
  return request({
    url: '/rb/roadBridge/getRoadBridgeGroup',
    method: 'get'
  })
}

// 查询道桥信息列表
export function getRoadBridgeList(query) {
  return request({
    url: '/rb/roadBridge/getList',
    method: 'get',
    params: query
  })
}
// 汇总统计
export function getCount(query) {
  return request({
    url: '/rb/roadBridge/getCount',
    method: 'get',
    params: query
  })
}

// 查询道桥问题记录信息列表
export function getQuestionRecordList(query) {
  return request({
    url: '/rb/roadBridge/rbQuestionRecordList/list',
    method: 'get',
    params: query
  })
}
